<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>垃圾分类查询</title>
<link href="<%=path%>/static/usercss/css/index.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<%=path%>/static/js/jquery-3.2.1.js"></script>
<!--[if IE]>
<script>
(function(){if(!/*@cc_on!@*/0)return;var e = "abbr,article,aside,audio,canvas,datalist,details,dialog,eventsource,figure,footer,header,hgroup,mark,menu,meter,nav,output,progress,section,time,video".split(','),i=e.length;while(i--){document.createElement(e[i])}})()
</script>
<![endif]-->
</head>
<body>
<jsp:include page="/WEB-INF/web/includ/header.jsp"></jsp:include>

<section>
    <h1><a href="http://fenlicx.qinglab.cn" title="垃圾分类查询">分类查询</a></h1>
    <div class="seach">
      <input type="text" name="seach" class="seach_txt" id="seach">
      <input type="submit" class="seach_bun" name="button" id="button" value="查询分类">
      <%-- <a href="<%=path %>/user/fenlei/result.html">分类搜索页面</a> --%>
    </div>
    
</section>
<jsp:include page="/WEB-INF/web/includ/footer.jsp"></jsp:include>
<script type="text/javascript" src="<%=path%>/static/managecss/lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript" src="<%=path%>/static/managecss/lib/layer/2.4/layer.js"></script>
<script type="text/javascript">
		$(function() {
				var msg = "${requestScope.msg}";
				var msg1 = "${param.msg}";
				if(msg=="login"||msg1=="login"){
					layer.alert("您还未登录，请先登录！");
				}
			
				$("#button").click(function() {
				var keyword = $("#seach").val();
				
				 location.href="<%=path %>/web/rubbish/seachResult?keyword="+keyword; 
			})
		})
</script>

</body>
</html>

